require 'sinatra'
require 'erb'

def page(name)
    index = ERB.new(File.read("resources/views/#{name}.erb"))
    return index.result()
end

get '/' do
    page('index')
end